HTML5 LocalStorage: Checking if a key exists [duplicate]

55

HTML5 LocalStorage: Checking if a key exists [duplicate] -

if (localStorage.getItem("username") === null) {
  //...
}

Comments

Submit
0 Comments